<?php    

defined('C5_EXECUTE') or die(_("Access Denied."));

class AmiantImageGalleryPackage extends Package {

	protected $pkgHandle = 'amiant_image_gallery';
	protected $appVersionRequired = '5.4.0';
	protected $pkgVersion = '0.1.3';
	
	public function getPackageDescription() {
		return t('Display Images with effects in various ways.');
	}
	
	public function getPackageName() {
		return t('Amiant Image Gallery');
	}
	
	public function install() {
		$pkg = parent::install();
		Loader::model('attribute/categories/collection');
		
		// install attributes
		$cak1 = CollectionAttributeKey::add('TEXT',array('akHandle' => 'image_caption', 'akName' => t('Caption For Image'), 'akIsSearchable' => true), $pkg);
		$cak2 = CollectionAttributeKey::add('TEXT',array('akHandle' => 'link_url', 'akName' => t('URL For Image'), 'akIsSearchable' => true), $pkg);
	
		//install block
		BlockType::installBlockTypeFromPackage('amiant_gallery', $pkg); 

	}
}
